<template>
    <view style="width: 100vw;padding: 20rpx;box-sizing: border-box;">
        <mp-html v-if="data.article_content.length > 0" :content="data.article_content"></mp-html>
    </view>
</template>

<script>
import { getArticleInfo } from '@/api/modules/common';
export default {
    data() {
        return {
            data: {
                article_content: ''
            }
        };
    },
    onLoad(e) {
        this.getArticleInfo(e);
    },
    methods: {
        async getArticleInfo(e) {
            const { data } = await getArticleInfo(e);
            this.data = data;
            console.log(this.data);
            uni.setNavigationBarTitle({ title: data.article_title });
        }
    }
};
</script>

<style lang="scss" scoped></style>
